package tdh.entity.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import tdh.entity.po.Depart;

/**
 * 封装了部分部门信息
 * @author 曹昊
 * @date 2021/7/12
 */
@Data
@AllArgsConstructor
public class DepartVo {
    //BMDM 主键 单位代码+部门ID
    private String bmdm;
    //BMMC
    private String bmmc;


    /**
     * @Author caohao
     * @Description 将部门实体类转化为视图类
     * @Date 9:38 2021/7/12
     * @Param [depart]
     * @return tdh.entity.vo.DepartVo
     **/
    public static DepartVo tsfVo(Depart depart){
        return new DepartVo(depart.getBmdm(),depart.getBmmc());
    }

}